﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.EntityModel;
using YasharEl.Infrastructure.Core.Prototype;

namespace YasharEl.Infrastructure.TaskEngine.EntityModel
{
    public class TaskDefinitionEntity : ReadOnlyEntity, ITaskDefinition
    {
        #region Constructors

        public TaskDefinitionEntity()
        {
        }

        #endregion

        #region ITaskDefinition Implementations

        public virtual long TaskDefinitionId
        {
            get;
            private set;
        }

        public virtual string TaskDefinitionName
        {
            get;
            private set;
        }

        public virtual string TaskDefinitionDescription
        {
            get;
            private set;
        }

        public virtual string DisplayName
        {
            get;
            private set;
        }

        #endregion

        #region AbstractEntity<TIdentity> Overrides

        public override long Id
        {
            get
            {
                return TaskDefinitionId;
            }
            protected set
            {
                TaskDefinitionId = value;
            }
        }

        #endregion

        #region IHasPropertyDefinitions Implementations

        public virtual IList<IPropertyMapping> DefinedProperties
        {
            get;
            private set;
        }

        #endregion
    }
}
